<?php
class node_Model_NodeType extends Clu_Db_Table_Abstract
{
	protected $_name = "node_types";
	protected $_primary = "type";
	
	public function findByPrimary($val)
	{
		if (!$val)
            return null;
        else
//        	die($this->_primary . ' = ' . $this->getAdapter()->quote($val, 'STRING'));
		    return $this->fetchRow($this->_primary . ' = ' . $this->getAdapter()->quote($val, 'STRING'));
	}
}
?>